﻿using AdminStystem.Domain;
using AdminSytem.EnitiyFrameWorkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSytem.Repositories
{
    public class AdminRepository :Repository<User>, IAdminRepository
    {
        private readonly AdminStystemDBContext context;

        public AdminRepository(AdminStystemDBContext context):base(context)
        {
            this.context = context;
        }
        

        public async Task<List<User>> GetAllAsync()
        {
            return await context.Users.ToListAsync();
        }
    }
}
